home *** CD-ROM | disk | FTP | other *** search
- // AltirisVSProvider.mof : mof source for AltirisVSProvider
- //
- //
- // This file will be processed by MOFCOMP utility to
- // register the provider with the WMI repository
- //
- // TODO: Consider combining this mof with the mof that defines the class that this
- // provider provides.
-
-
- #pragma autorecover
- #pragma namespace ("\\\\.\\root\\default")
-
- class Win32_ProviderEx : __Win32Provider
- {
- [Description ( "Hosting Model, provides compatibility with Windows XP and Windows Server .NET. Do not override." ) , Override("HostingModel")]
- string HostingModel = "NetworkServiceHost";
- [Description("..."),Override("SecurityDescriptor")]
- string SecurityDescriptor;
- UInt32 version = 1;
- } ;
-
- instance of Win32_ProviderEx as $VSProv
- {
- Name = "VSProv" ; //Name is the key property for __Provider objects.
- //vendor|provider|version is the suggested format
- //to prevent name collisions.
-
- ClsId = "{71D8DF9A-AD2D-44BF-A542-1412F68061D1}" ; //provider GUID
-
- DefaultMachineName = NULL; //NULL for local machine
-
- ClientLoadableCLSID = NULL; //reserved
-
- ImpersonationLevel = 0; //reserved
-
- InitializationReentrancy = 0; //Set of flags that provide information about serialization:
- //0 = all initialization of this provider must be serialized
- //1 = all initializations of this provider in the same namespace must be serialized
- //2 = no initialization serialization is necessary
-
- InitializeAsAdminFirst = FALSE; //Request to be fully initialized as "Admin" before
- //initializations begin for users
-
- PerLocaleInitialization = FALSE; //Indicates whether the provider is initialized for each
- //locale if a user connects to the same namespace more
- //than once using different locales.
-
- PerUserInitialization = FALSE; //Indicates whether the provider is initialized once for each actual
- //Windows NT/Windows 2000 NTLM user making requests of the provider.
- //If set to FALSE, the provider is initialized once for all users
-
- Pure = TRUE; //A pure provider exists only to service requests from
- //applications and WMI. Most providers are pure providers
- //Non-pure providers transition to the role of client after they have
- //finished servicing requests.
-
-
- UnloadTimeout = NULL; //Currently ignored
- //Use __CacheControl class in the root namespace to control provider unloading
- //A string in the DMTF date/time format that specifies how long WMI
- //allows the provider to remain idle before it is unloaded.
-
-
- } ;
-
- instance of __InstanceProviderRegistration
- {
- Provider = $VSProv;
-
- SupportsPut = "FALSE";
- SupportsGet = "FALSE";
- SupportsDelete = "FALSE";
- SupportsEnumeration = "FALSE";
- };
-
- instance of __MethodProviderRegistration
- {
- Provider = $VSProv;
- };
-
- [dynamic: ToInstance, provider("VSProv")]class AltirisVSProv
- {
- [implemented, static, Description("Enumerates all the layers present on the system."): ToInstance ToSubClass]
- uint32 EnumerateLayers([IN] boolean Verbose = TRUE, [OUT] string EnumData);
- [implemented, static, Description("Activates the layer."): ToInstance ToSubClass]
- uint32 Activate([IN] string layerNameOrGuid);
- [implemented, static, Description("Deactivates the layer."): ToInstance ToSubClass]
- uint32 Deactivate([IN] string layerNameOrGuid, [IN] boolean force = FALSE);
- [implemented, static, Description("Deletes the layer."): ToInstance ToSubClass]
- uint32 Delete([IN] string layerNameOrGuid);
- [implemented, static, Description("Resets the layer."): ToInstance ToSubClass]
- uint32 Reset([IN] string layerNameOrGuid, [IN] boolean force = FALSE);
- [implemented, static, Description("AutoActivates the layer."): ToInstance ToSubClass]
- uint32 AutoActivate([IN] string layerNameOrGuid, [IN] boolean autoActivate = TRUE);
- [implemented, static, Description("Imports the layer from specified path."): ToInstance ToSubClass]
- uint32 Import([IN] string fileName, [IN] boolean overwrite = FALSE);
- [implemented, static, Description("Exports the layer to the specified path."): ToInstance ToSubClass]
- uint32 Export([IN] string layerNameOrGuid, [IN] string filePath, [IN] boolean overwrite = FALSE);
- [implemented, static, Description("Renames a layer"): ToInstance ToSubClass]
- uint32 Rename([IN] string layerNameOrGuid, [IN] string newName);
- [implemented, static, Description("Sends inventory to the NS Server."): ToInstance ToSubClass]
- uint32 SendInventory();
- [implemented, static, Description("Returns the version of the Software Virtualization Agent."): ToInstance ToSubClass]
- uint32 GetVersion([OUT] string versionData);
- [implemented, static, Description("Starts capturing in to the layer."): ToInstance ToSubClass]
- uint32 StartCapture([IN] string layerNameOrGUid, [IN] string pathToExe);
- [implemented, static, Description("Stops the capture."): ToInstance ToSubClass]
- uint32 StopCapture();
- };